// ExcelTableTextManage.h: interface for the ExcelTableTextManage class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_EXCELTABLETEXTMANAGE_H__15E651AC_5A2F_40BD_9C2A_8A8C93E6823A__INCLUDED_)
#define AFX_EXCELTABLETEXTMANAGE_H__15E651AC_5A2F_40BD_9C2A_8A8C93E6823A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <afxtempl.h>

class ColTextManage
{
public:
	ColTextManage(){};
	virtual ~ColTextManage();
//	void operator = ( ColTextManage )
	CString GetText(int iIndex) const
	{
		return m_ColManageArray.GetAt( iIndex );
	}
	void SetText(int iIndex,const CString& strText )
	{
		if ( iIndex >= m_ColManageArray.GetSize() )
		{
			m_ColManageArray.SetSize( iIndex + 1 );
		}
		m_ColManageArray.SetAt( iIndex,strText );
	}
	CArray <CString,CString> m_ColManageArray;
};

class __declspec(dllexport) ExcelTableTextManage  
{
public:
	ExcelTableTextManage();
	virtual ~ExcelTableTextManage();
	int GetColumns();
	CString GetColText( int iIndex );
	int GetItems();
	CString GetItemText( int iItem,int iCol);
    
	void SetColText( int iIndex, CString& strColText );
	void SetItemText( int iItem,int iCol,const CString& strItemText);

private:
	CString m_strColText;
	CString m_strItemText;
	CArray <CString,CString> m_ColManageArray;
	CArray <ColTextManage,ColTextManage> m_ItemManageArray;
};


#endif // !defined(AFX_EXCELTABLETEXTMANAGE_H__15E651AC_5A2F_40BD_9C2A_8A8C93E6823A__INCLUDED_)
